home *** CD-ROM | disk | FTP | other *** search
-
- Math.doc
-
- Utilities for number crunching, including vectors and complex numbers.
-
-
- ! int
- int = Integer number.
- Computes the factorial of the number. (Non-integer inputs produce
- "strange" results.)
-
- cabs complex
- complex = List of two numbers (first real, second imaginary).
- Output real absolute value of a complex number.
-
- cadd complex complex
- complex = List of two numbers (first real, second imaginary).
- Output complex sum of two complex numbers.
-
- cconj complex
- complex = List of two numbers (first real, second imaginary).
- Output complex conjugate of a complex number.
-
- cdiv complex complex
- complex = List of two numbers (first real, second imaginary).
- Output complex quotient of two complex numbers.
-
- cmutl complex complex
- complex = List of two numbers (first real, second imaginary).
- Output complex product of two complex numbers.
-
- cscale complex real
- complex = List of two numbers (first real, second imaginary).
- real = Any number.
- Output complex product of a complex number and a real number.
-
- csqrt complex
- complex = List of two numbers (first real, second imaginary).
- Output complex square root of a complex number.
-
- csub complex complex
- complex = List of two numbers (first real, second imaginary).
- Output complex difference between two complex numbers.
-
- gcd int int
- int = Integer number.
- Computes the greatest common divisor of the inputs. (Non-integer
- inputs produce "strange" results.)
-
- lcm int int
- int = Integer number.
- Computes the least common multiple of the inputs. (Non-integer
- inputs produce "strange" results.)
-
- rotate-xy basis angle
- basis = List of three vectors.
- angle = Number, an angle.
- Output basis rotated angle in the X-Y plane.
-
- rotate-yz basis angle
- basis = List of three vectors.
- angle = Number, an angle.
- Output basis rotated angle in the Y-Z plane.
-
- rotate-zx basis angle
- basis = List of three vectors.
- angle = Number, an angle.
- Output basis rotated angle in the Z-X plane.
-
- -v vector
- vector = List of three numbers.
- Output vector opposite of a vector.
-
- vadd vector vector
- vector = List of three numbers.
- Output vector sum of two vectors.
-
- vbasis vector basis
- vector = List of three numbers.
- basis = List of three vectors.
- Change of basis. Output vector expressed in terms of new basis.
-
- vcross vector vector
- vector = List of three numbers.
- Output vector cross product of two vectors.
-
- vdot vector vector
- vector = List of three numbers.
- Output scalar dot product of two vectors.
-
- vmag vector
- vector = List of three numbers.
- Output scalar magnitude of a vector.
-
- vrotate vector vector angle
- vector = List of three numbers.
- angle = Number, an angle.
- Output first vector rotated toward the second vector, second vector
- must be perpendicular to the first.
-
- vscale vector scalar
- vector = List of three numbers.
- scalar = Any number.
- Output vector product of a vector and a scalar.
-
- vsub vector vector
- vector = List of three numbers.
- Output vector difference between two vectors.
-
-